<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
	request.setCharacterEncoding("UTF-8");
	String cp = request.getContextPath();
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>

<script type="text/javascript" src="<%=cp%>/data/js/jquery-1.8.2.min.js"></script>
<script type="text/javascript">
function sendIt() {
    f = document.route;
	
	if(f.mode.value == "created"){
		f.action = "<%=cp%>/admin/route.action";
	}else if(f.mode.value == "updated"){
		f.action = "<%=cp%>/admin/route.action";
	}
	
    f.submit();
}
</script>

</head>
<body>
<div id="container">
  <form action="" name="route" method="post">
  
  
    항공사이름airLineName
    	<select name="airLineName">
		   	  <option value="전체" selected>전체</option>
      	      <option value="한국항공">한국항공</option>
      	      <option value="일본항공">일본항공</option>
      	      <option value="중국항공">중국항공</option>
      	      <option value="아시아항공">아시아항공</option>
      	      <option value="미주항공">미주항공</option>
      	      <option value="유럽항공">유럽항공</option>
      	</select>
      <br />
     항공기이름airName
     <select name="airName">
		   	  <option value="전체" selected>전체</option>
      	      <option value="HAN1001">HAN1001</option>
      	      <option value="JAP1001">JAP1001</option>
      	      <option value="CHN1001">CHN1001</option>
      	      <option value="HAN1002">HAN1002</option>
      	      <option value="ASA1001">ASA1001</option>
      	      <option value="AMC1001">AMC1001</option>
      	      <option value="EUP1001">EUP1001</option>
      	</select>
      <br />
	루트그룹routeG
	    <input type="text"  name="routeG" />
      <br />
	출발지startPlace
        <input type="text"  name="startPlace" />
	<br />
	도착지endPlace
        <input type="text"  name="endPlace" />
	<br />		
	운임fare
        <input type="text"  name="fare" />
	<br />		
	출발일자startDate
		<input type="text" name="startDate"/>
	<br/>
	도착일자endDate
		<input type="text" name="endDate"/>
	<br/>
	
   	 <input type="hidden" name="mode" value="${mode}"/>
    <input type="button" value="전송"  onclick="sendIt();"/>
  </form>
</div>








</body>
</html>